{% extends 'layout/layout.html' %}
{% import 'libs/libs.html' as libs %}
{% import 'libs/const.html' as const %}

{% block body %}
<div class="row">
    <div class="col-lg-6 col-md-4 col-xs-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <div class="row">
                    <div class="col-lg-6">火币账户列表</div>
                    <div class="col-lg-6">
                        <form class="form" action="" method="GET" id="export_excel_form">
                        <a id="export_excel" name="export_excel" type="button" class="btn btn-primary btn-xs" style="float:right;">导出excel</a>
                        <input type="hidden" name="a_list_export" id="a_list_export">
                        </form>
                    </div>
                </div>
            </div>
            <div class="ibox-content">
                <table class="table table-hover">
                    <thead>
                        <tr>
                            <th>币种</th>
                            <th>交易所</th>
                            <th>导出时间</th>
                            <th>持仓数量</th>
                            <th>折合usdt</th>
                        </tr>
                    </thead>
                    <tbody>
                    {% for a in a_list%}
                        <tr>
                            <td>{{ a[0] }}</td>
                            <td>{{ a[1] }}</td>
                            <td>{{ a[2] }}</td>
                            <td>{{ a[3] }}</td>
                            <td>{{ a[4] }}</td>
                            <td>{{ a[5] }}</td>
                        </tr>
                    {% endfor %}
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
{% endblock %}

{% block footer %}
<script type="text/javascript">
$("#export_excel").click(function(){
    $("#a_list_export").val(1);
    document.getElementById("export_excel_form").submit();
});
</script>
{% endblock %}
